<template>
  <div class="commonHead">
    <van-nav-bar
      :title="title"
      left-arrow
      @click-left="$router.go(-1)"
    />
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    }
  }
}
</script>

<style lang="scss" scoped>
.commonHead{
  width: 100%;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  padding:0 .3rem;
}
/deep/ .van-nav-bar__arrow {
    font-size:20px;
    color:#666;
}
/deep/ .van-nav-bar__title{
    color:#666;
  }
</style>
